package org.zjt.bean;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;

/**
 * Description:
 *
 * @author juntao.zhang
 * Date: 2018-06-28 上午11:03
 * @see
 */
@Slf4j
public class BeanPropertiesLoadTest {

    @Data
    public static class Parent<T>{

        public int size = 10;

        private final List<T> data ;

        public Parent() {
            log.info("1 size: {} :{}",getSize(),size);
            this.data = new ArrayList<>(getSize());
        }
    }



    @Data
    public static class Son extends Parent<String>{

        public int size  = 2;

        public Son() {
        }
    }


    public static void main(String[] args) {
        log.info("2 size: {}",new Son().getSize());
    }


}
